/**
 * Copyright 2013 Green global company. All rights reserved. Use is subject to license terms.
 */
package webdev.utils;

import android.content.ContentValues;
import android.provider.MediaStore.Images.Media;
import android.view.View;

/**
 * Chua cac ham image tu capture or select from gallery
 * 
 * @author: Truong.le
 * @version: 1.0
 * @since: 1.0
 */

public class ProcessCaptureImage {
	/**
	*
	* 
	* @author: truong.le
	* @datetime: Nov 27, 2013 3:32:56 PM
	* @return: void
	* @param viewTODO
	* 
	*/
	public void captureImage(View view)
    {
        ContentValues values = new ContentValues();
        values.put(Media.TITLE, "My demo image");
        values.put(Media.DESCRIPTION, "Image Captured by Camera via an Intent");
        /*myPicture = getContentResolver().insert(Media.EXTERNAL_CONTENT_URI, values);
        Intent i = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
        i.putExtra(MediaStore.EXTRA_OUTPUT, myPicture);
        startActivityForResult(i, 0);*/
    }
}
